using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
using KPIS.GERP.Models.Class;

namespace KPIS.GERP.Models.ICM
{
	[DataContract, Table("IcmMasDepreciationType")]
    public class MasDepreciationType
    {

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "DpTypeId", ResourceType = typeof(Resources.MasDepreciationTypeResource))]
        public int DpTypeId { get; set; }

        [CustomRequired]
        [DataMember, Display(Name = "Name", ResourceType = typeof(Resources.MasDepreciationTypeResource))]
        public string Name { get; set; }

        [CustomRequired]
        [DataMember, Display(Name = "ScrapValue", ResourceType = typeof(Resources.MasDepreciationTypeResource))]
        public decimal ScrapValue { get; set; }
         
        [DataMember, Display(Name = "DpRateYear", ResourceType = typeof(Resources.MasDepreciationTypeResource))]
        public decimal DpRateYear { get; set; }

        [CustomRequired]
        [DataMember, Display(Name = "MinRateYear", ResourceType = typeof(Resources.MasDepreciationTypeResource))]
        public decimal? MinRateYear { get; set; }

        [CustomRequired]
        [DataMember, Display(Name = "MaxRateYear", ResourceType = typeof(Resources.MasDepreciationTypeResource))]
        public decimal? MaxRateYear { get; set; }

        [CustomRequired]
        [DataMember, Display(Name = "MinLifeYear", ResourceType = typeof(Resources.MasDepreciationTypeResource))]
        public Nullable<int> MinLifeYear { get; set; }

        [CustomRequired]
		[DataMember, Display(Name = "MaxLifeYear", ResourceType = typeof(Resources.MasDepreciationTypeResource))]
        public Nullable<int> MaxLifeYear { get; set; }

        [StringLength(2)]
		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.MasDepreciationTypeResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.MasDepreciationTypeResource))]
        public int CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.MasDepreciationTypeResource))]
        public System.DateTime? CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.MasDepreciationTypeResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.MasDepreciationTypeResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

    }
}